Auto merge of #3954 - RReverser:run-with, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 13 May 2017 18:06:26 +0000 (18:06 +0000)
committerbors <bors@rust-lang.org>
Sat, 13 May 2017 18:06:26 +0000 (18:06 +0000)
commit3fa09c2f48911ae225e4112360b3ada08d6f7679
tree3db50e44bb70a8783ecaffd44e5ed306cffd5d9b
parent13d92c64d0153d95dbabeb49b828bbbef4b1bb34
parent0f1c687d3bc150d225a2bd75cc40b7a9ca0a18d0
Auto merge of #3954 - RReverser:run-with, r=alexcrichton

Add support for custom target-specific runners

When `target.$triple.runner` is specified, it will be used for any execution commands by cargo including `cargo run`, `cargo test` and `cargo bench`. The original file is passed to the runner executable as a first argument.

This allows to run tests when cross-comping Rust projects.

This is not a complete solution and might be extended in future for better ergonomics to support passing extra arguments to the runner itself or overriding runner from the command line, but it should already unlock major existing use cases.

Fixes #1411
Resolves #3626